const mongoose=require("mongoose");
mongoose.connect("mongodb://localhost/test");
mongoose.Promise=Promise;

var Schema=mongoose.Schema({
      title:String,
      content:String,
      createTime:Date,
      upDateTime:Date,
      //访问人数
      accessNum:Number
});

var Article=mongoose.model("Article",Schema);

module.exports=Article;
